#!/usr/bin/python

"""What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? """

import time

def main():
    start = time.time()
        
    seq = [x for x in range(1, 20)]
    print seq
    solved = False    
    i = 20

    while solved == False:
        for n in reversed(seq):
            if i % n == 0:
                continue
            else:
                break
        if n == 1:
            solved = True
        else:
            if n < 5:
                print i, n
            i += 20

    print i
       
    print '{0:.2f} s'.format(time.time() - start)   

# soluion 232792560 in 5.93 s
    
if __name__ == '__main__':
  main()
